<template>
  <el-card>
    <div class="main">
      <img :src="userStore.avatar" alt="" />
      <div class="right">
        <h3>{{ getTime() }}</h3>
        <h3>{{ userStore.username }}</h3>
      </div>
    </div>
  </el-card>
  <div class="bottom">
    <SvgIcon name="welcome" width="400px" height="400px"></SvgIcon>
  </div>
</template>
<script setup lang="ts">
import useUserStore from '@/store/modules/user'
import getTime from '@/utils/getTime'

let userStore = useUserStore()
</script>
<style lang="scss" scoped>
.main {
  display: flex;
  align-items: center;
  img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  .right {
    margin: 0px 60px;
    h3 {
      margin-top: 10px;
      font-weight: 700;
      font-size: 20px;
    }
  }
}
.bottom {
  margin-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
